package cn.com.dhcc.app.pub.core.consts;

import java.io.File;

import cn.com.dhcc.app.core.CoreEnv.ParaGetTool;

public class DdiProperties {
	public static final String APP_UPLOAD_FILEDATA_PATH = ParaGetTool.getPara("app.upload.filedata.path");
	public static final String APP_UPLOAD_COPY_FILEPATH = APP_UPLOAD_FILEDATA_PATH + File.separator + "copy_temp";
	public static final String APP_UPLOAD_FILEDATA_TMPDIR = APP_UPLOAD_FILEDATA_PATH  + File.separator + "/temp";
	
	public static final int APP_PAGE_MAXQUERYNUM = Integer.parseInt(ParaGetTool.getPara("app.page.maxquerynum"));
	public static final int APP_EXECUTION_MAXQUERYNUM = ParaGetTool.getPara(Integer.class,"app.execution.maxquerynum", (int) 10000l);
	public static final int APP_CORRECTIONTIME = Integer.parseInt(ParaGetTool.getPara("app.correctiontime"));
	public static final int APP_CHECKSTATUSTIME=  Integer.parseInt(ParaGetTool.getPara("app.checkstatustime"));
	public static final int APP_PARSE_MAXEXECNUM = Integer.parseInt(ParaGetTool.getPara("app.parse.maxexecnum"));
	//结算分组
	public static final int APP_SETT_GROUP = Integer.parseInt(ParaGetTool.getPara("app.execution.settgroup"));
	public static final int APP_SETT_MAXQUERYNUM = Integer.parseInt(ParaGetTool.getPara("app.execution.maxsettnum"));
	public static final String APP_EXECUTE_ERROR="ERROR";//执行sql错误记录
	//行政区编码
	public static final String NODE_CODE = ParaGetTool.getPara("node.code");
	//交换平台wsdl地址
	public static final String ADMIN_USERNAME = "admin"; 
	public static final String DEFAULT_ADMIN_PWD = "admin";
	public static final String LOCAL_NODE_SESSION_KEY = "_"; 
	public static enum ConfType{
		//1 完全同构 2 前缀替换 3 自定义
		COMPLETELY_STRUCT("1","完全同构"),
		PREFIX_REPLACE("2","前缀替换"),
		USER_DEFINED("3","自定义");
		private String type;
		private String desc;
		private ConfType(String type, String desc) {
			this.type = type;
			this.desc = desc;
		}
		public String getType() {
			return type;
		}
		public void setType(String type) {
			this.type = type;
		}
		public String getDesc() {
			return desc;
		}
		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		
	}
	
	public static enum RecvStatus{
		//0 数据接收中 2 数据解析执行中 3 数据接收完成 4 数据接收失败
		DATA_RECEIVING("0","数据接收中"),
		DATA_ANALYZE_EXECUTING("1","数据解析执行中"),
		DATA_RECV_COMPLETE("2","数据接收完成"),
		DATA_RECV_ERROR("3","数据接收失败");
		private String type;
		private String desc;
		private RecvStatus(String type, String desc) {
			this.type = type;
			this.desc = desc;
		}
		public String getType() {
			return type;
		}
		public void setType(String type) {
			this.type = type;
		}
		public String getDesc() {
			return desc;
		}
		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		
	}
}
